<template>
	<view  class="container">

		<view class="header">
			<!-- 订单状态 -->
			<view class="order-status">
				<view class="status-icon">
					<!-- 进行中的订单 -->
					<block>
						<!-- 待支付 -->
						<block>
							<image class="image" src="../../static/img/wait_pay.png" mode="aspectFit"></image>
						</block>
						<!-- 待发货 -->
					<!-- 	<block v-else-if="order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value">
							<image class="image" src="/static/order/status/wait_deliver.png" mode="aspectFit"></image>
						</block> -->
						<!-- 待收货 -->
						<!-- <block v-else-if="order.receipt_status == ReceiptStatusEnum.NOT_RECEIVED.value">
							<image class="image" src="/static/order/status/wait_receipt.png" mode="aspectFit"></image>
						</block> -->
					</block>
					<!-- 已完成 -->
					<!-- <block v-if="order.order_status == OrderStatusEnum.COMPLETED.value">
						<image class="image" src="/static/order/status/received.png" mode="aspectFit"></image>
					</block> -->
					<!-- 已取消/待取消 -->
					<!-- <block
						v-if="order.order_status == OrderStatusEnum.CANCELLED.value || order.order_status == OrderStatusEnum.APPLY_CANCEL.value">
						<image class="image" src="/static/order/status/close.png" mode="aspectFit"></image>
					</block> -->
				</view>
				<view class="status-text">
					<text>待支付</text>
				</view>
			</view>
	
		</view>

	

	

		<!-- 商品列表 -->
		<view class="goods-list i-card">
			<view class="goods-item" >
				<view class="goods-main" >
					<!-- 商品图片 -->
					<view class="goods-image">
						<image class="image"  mode="scaleToFill"></image>
					</view>
					<!-- 商品信息 -->
					<view class="goods-content">
						<view class="goods-title"><text class="twoline-hide"></text></view>
						<view class="goods-props clearfix">
							<view class="goods-props-item" >
								<text></text>
							</view>
						</view>
					</view>
					<!-- 交易信息 -->
					<view class="goods-trade">
						<view class="goods-price">
							<text class="unit">￥</text>
							<text
								class="value"></text>
						</view>
						<view class="goods-num">
							<text>×</text>
						</view>
					</view>
				</view>
			
			</view>
		</view>

		<!-- 订单信息 -->
		<view class="order-info i-card">
			<view class="info-item">
				<view class="item-lable">订单编号</view>
				<view class="item-content">
					<text></text>
					<view class="act-copy" >
						<text>复制</text>
					</view>
				</view>
			</view>
			<view class="info-item">
				<view class="item-lable">下单时间</view>
				<view class="item-content">
					<text></text>
				</view>
			</view>
			<view class="info-item">
				<view class="item-lable">买家留言</view>
				<view class="item-content">
					<text></text>
				</view>
			</view>
		</view>

		<!-- 结算信息 -->
		<view class="trade-info i-card">
			<view class="info-item">
				<view class="item-lable">订单金额</view>
				<view class="item-content">
					<text>￥11</text>
				</view>
			</view>
	
		
		
			<view class="divider"></view>
			<view class="trade-total">
				<text class="lable">实付款</text>
				<view class="goods-price">
					<text class="unit">￥</text>
					<text class="value"></text>
				</view>
			</view>
		</view>

		<!-- 底部操作按钮 -->
	<!-- 	<view v-if="order.order_status != OrderStatusEnum.CANCELLED.value" class="footer-fixed">
			<view class="btn-wrapper">
			
				<block v-if="order.pay_status == PayStatusEnum.PENDING.value">
					<view class="btn-item" @click="onCancel(order.order_id)">取消</view>
				</block>
			
				<block v-if="order.order_status != OrderStatusEnum.APPLY_CANCEL.value">
			
				</block>
				
				<view v-else class="f-28 col-8">取消申请中</view>
				
				<block v-if="order.pay_status == PayStatusEnum.PENDING.value">
					<view class="btn-item active" @click="onPay()">去支付</view>
				</block>
			
				<block
					v-if="order.delivery_status == DeliveryStatusEnum.DELIVERED.value && order.receipt_status == ReceiptStatusEnum.NOT_RECEIVED.value">
					<view class="btn-item active" @click="onReceipt(order.order_id)">确认收货</view>
				</block>
				
				<block v-if="order.order_status == OrderStatusEnum.COMPLETED.value && order.is_comment == 0">
					<view class="btn-item" >评价</view>
				</block>
			</view>
		</view> -->

	

	</view>
</template>

<script>

</script>

<style>
	page {
		background: #f4f4f4;
	}
</style>
<style lang="scss" scoped>
	.container {
		// 设置ios刘海屏底部横线安全区域
		padding-bottom: constant(env(safe-area-inset-bottom) + 106rpx + 6rpx);
		padding-bottom: calc(env(safe-area-inset-bottom) + 106rpx + 6rpx);
	}

	// 页面顶部
	.header {
		display: flex;
		justify-content: space-between;
		background-color: #e8c269;
		height: 280rpx;
		padding: 56rpx 30rpx 0 30rpx;

		.order-status {
			display: flex;
			align-items: center;
			height: 128rpx;

			.status-icon {
				width: 128rpx;
				height: 128rpx;

				.image {
					display: block;
					width: 100%;
					height: 100%;
				}
			}

			.status-text {
				padding-left: 20rpx;
				color: #fff;
				font-size: 38rpx;
				font-weight: bold;
			}
		}

		.next-action {
			display: flex;
			align-items: center;
			height: 128rpx;

			.action-btn {
				min-width: 152rpx;
				height: 56rpx;
				padding: 0 30rpx;
				line-height: 56rpx;
				background-color: #fff;
				text-align: center;
				border-radius: 28rpx;
				border-color: rgb(102, 102, 102);
				cursor: pointer;
				user-select: none;
				color: #c7a157;
			}
		}
	}

	// 通栏卡片
	.i-card {
		background: #fff;
		padding: 24rpx 24rpx;
		width: 94%;
		box-shadow: 0 1rpx 5rpx 0px rgba(0, 0, 0, 0.05);
		margin: 0 auto 20rpx auto;
		border-radius: 20rpx;
	}

	// 收货地址
	.delivery-address {
		margin-top: -50rpx;

		.link-man {
			line-height: 46rpx;
			color: #333;

			.name {
				margin-right: 10rpx;
			}
		}

		.address {
			margin-top: 12rpx;
			color: #999;
			font-size: 24rpx;

			.detail {
				margin-left: 6rpx;
			}
		}

	}

	// 物流公司
	.express {
		display: flex;
		align-items: center;

		.main {
			flex: 1;
		}

		.info-item {
			display: flex;
			margin-bottom: 24rpx;

			&:last-child {
				margin-bottom: 0;
			}

			.item-lable {
				display: flex;
				align-items: center;
				font-size: 24rpx;
				color: #999;
				margin-right: 30rpx;
			}

			.item-content {
				flex: 1;
				display: flex;
				align-items: center;
				font-size: 26rpx;
				color: #333;

				.act-copy {
					margin-left: 20rpx;
					padding: 2rpx 20rpx;
					font-size: 22rpx;
					color: #666;
					border: 1rpx solid #c1c1c1;
					border-radius: 16rpx;
				}
			}
		}


		// 右侧箭头
		.right-arrow {
			margin-left: 16rpx;
			// color: #777;
			font-size: 26rpx;
		}

	}

	// 商品列表
	.goods-list {

		// 商品项
		.goods-item {
			margin-bottom: 40rpx;

			&:last-child {
				margin-bottom: 0;
			}

			// 商品信息
			.goods-main {
				display: flex;
			}

			// 商品图片
			.goods-image {
				width: 180rpx;
				height: 180rpx;

				.image {
					display: block;
					width: 100%;
					height: 100%;
					border-radius: 8rpx;
				}
			}

			// 商品内容
			.goods-content {
				flex: 1;
				padding-left: 16rpx;
				padding-top: 16rpx;

				.goods-title {
					font-size: 26rpx;
					max-height: 76rpx;
				}

				.goods-props {
					margin-top: 14rpx;
					height: 40rpx;
					color: #ababab;
					font-size: 24rpx;
					overflow: hidden;

					.goods-props-item {
						display: inline-block;
						margin-right: 14rpx;
						padding: 4rpx 16rpx;
						border-radius: 12rpx;
						background-color: #F5F5F5;
						width: auto;
					}
				}


			}

			// 交易信息
			.goods-trade {
				padding-top: 16rpx;
				width: 150rpx;
				text-align: right;
				color: $uni-text-color-grey;
				font-size: 26rpx;

				.goods-price {
					vertical-align: bottom;
					margin-bottom: 16rpx;

					.unit {
						margin-right: -2rpx;
						font-size: 24rpx;
					}
				}
			}

			// 商品售后
			.goods-refund {
				display: flex;
				justify-content: flex-end;

				.stata-text {
					font-size: 24rpx;
					color: #999;
				}

				.action-btn {
					border-radius: 28rpx;
					padding: 8rpx 26rpx;
					font-size: 24rpx;
					color: #383838;
					border: 1rpx solid #a8a8a8;
				}

			}

		}

	}

	// 订单信息
	.order-info {

		.info-item {
			display: flex;
			margin-bottom: 24rpx;

			&:last-child {
				margin-bottom: 0;
			}

			.item-lable {
				display: flex;
				align-items: center;
				font-size: 24rpx;
				color: #999;
				margin-right: 30rpx;
			}

			.item-content {
				flex: 1;
				display: flex;
				align-items: center;
				font-size: 26rpx;
				color: #333;

				.act-copy {
					margin-left: 20rpx;
					padding: 2rpx 20rpx;
					font-size: 22rpx;
					color: #666;
					border: 1rpx solid #c1c1c1;
					border-radius: 16rpx;
				}
			}
		}

	}

	// 交易信息
	.trade-info {

		.info-item {
			display: flex;
			margin-bottom: 24rpx;

			.item-lable {
				font-size: 24rpx;
				color: #999;
				margin-right: 24rpx;
			}

			.item-content {
				flex: 1;
				font-size: 26rpx;
				color: #333;
				text-align: right;
			}
		}

		.divider {
			height: 1rpx;
			background: #f1f1f1;
			margin-bottom: 24rpx;
		}

		.trade-total {
			display: flex;
			justify-content: flex-end;

			.goods-price {
				margin-left: 12rpx;
				vertical-align: bottom;
				// color: $uni-text-color-active;

				.unit {
					margin-right: -2rpx;
					font-size: 24rpx;
				}

			}
		}

	}


	/* 底部操作栏 */

	.footer-fixed {
		position: fixed;
		bottom: var(--window-bottom);
		left: 0;
		right: 0;
		z-index: 11;
		box-shadow: 0 -4rpx 40rpx 0 rgba(151, 151, 151, 0.24);
		background: #fff;

		// 设置ios刘海屏底部横线安全区域
		padding-bottom: constant(safe-area-inset-bottom);
		padding-bottom: env(safe-area-inset-bottom);

		.btn-wrapper {
			height: 106rpx;
			display: flex;
			align-items: center;
			justify-content: flex-end;
			padding: 0 30rpx;
		}

		.btn-item {
			min-width: 164rpx;
			border-radius: 28rpx;
			padding: 10rpx 24rpx;
			font-size: 28rpx;
			color: #383838;
			text-align: center;
			border: 1rpx solid #a8a8a8;
			margin-left: 24rpx;

			&.active {
				color: #fff;
				border: none;
				background: linear-gradient(to right, #f9211c, #ff6335);
			}
		}

	}

	// 弹出层-支付方式
	.pay-popup {
		padding: 24rpx;

		.title {
			font-size: 30rpx;
			margin-bottom: 50rpx;
			font-weight: bold;
			text-align: center;
		}

		.pop-content {
			min-height: 260rpx;
			padding: 0 10rpx;

			.pay-item {
				padding: 20rpx 35rpx;
				font-size: 28rpx;
				border-bottom: 1rpx solid #f1f1f1;

				&:last-child {
					border-bottom: none;
				}

				.item-left_icon {
					margin-right: 20rpx;
					font-size: 32rpx;

					&.wechat {
						color: #00c800;
					}

					&.balance {
						color: #ff9700;
					}
				}
			}
		}
	}

	//
</style>